gl renderer: Improve clipping code
authorTimm Bäder <mail@baedert.org>
Sun, 24 May 2020 10:06:07 +0000 (12:06 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 24 May 2020 13:59:05 +0000 (15:59 +0200)
commitd5bf3c2cd13b711487ce1bfcd7ef57222583ee54
tree7be9f3873cb8edc4a41cb258fd884b0a91cd9c6d
parent094788f1a37e090ffab3ffb37c380dae764e2252
gl renderer: Improve clipping code

don't render a clip to a texture if the new clip does not intersect with
any of the corners of the currently rounded clip.

Fixes #2770
gsk/gl/glutilsprivate.h
gsk/gl/gskglrenderer.c
testsuite/gsk/compare/clip-in-rounded-clip1.node [new file with mode: 0644]
testsuite/gsk/compare/clip-in-rounded-clip1.png [new file with mode: 0644]
testsuite/gsk/compare/clip-in-rounded-clip2.node [new file with mode: 0644]
testsuite/gsk/compare/clip-in-rounded-clip2.png [new file with mode: 0644]
testsuite/gsk/compare/clip-in-rounded-clip3.node [new file with mode: 0644]
testsuite/gsk/compare/clip-in-rounded-clip3.png [new file with mode: 0644]
testsuite/gsk/meson.build